//VIEW
const index = require('./view/index')
const home = require('./view/home')
const editText = require('./view/editText')
const essay = require('./view/essay')
const myself = require('./view/myself')

//API
const getListInfor = require('./api/getListInfor')
const loginInfor   = require('./api/loginInfor')
const getUserInfor = require('./api/getUserInfor')
const singUp = require('./api/singUp')
const POST = 'post'
const GET  = 'get'


module.exports = {
    view:{// 不需要请求方式
        index,
        home,
        editText,
        essay,
        myself,
    },
    api:{
        getListInfor:{
            method:GET,
            getListInfor
        },
        loginInfor:{
            method:POST,
            loginInfor
        },
        getUserInfor:{
            method:GET,
            getUserInfor
        },
        singUp:{
            method:POST,
            singUp
        }
    }

  }